//
//  DataSmallModel.m
//  UI22-阿里星球（音乐）
//
//  Created by 韩旭 on 16/8/13.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "DataSmallModel.h"
#import "HX_ActionModel.h"

@implementation DataSmallModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        self.ID = (NSInteger)value;
    }
}

+ (NSArray *)groupWithArray:(NSArray *)array {
    NSMutableArray *arrAll = [NSMutableArray array];
    for (NSDictionary *dic in array) {
       DataSmallModel *dataSmall = [DataSmallModel hx_BasemodelWithDic:dic];
        dataSmall.value = dic[@"action"][@"value"];
        [arrAll addObject:dataSmall];
    }
    return arrAll;
}

@end